import { http } from '@/utils/request'

/**
 * @description 获取订单支付信息
 * @param orderId 
 * @returns 
 */
export const reqPay = ( orderId : string ) => {
    return http(`/api/payment/weixin/createNative/${orderId}`, 'GET')
}


/**
 * @description 查询订单的支付状态
 * @returns 
 */
export const reqPayStatus = ( orderId : string ) => {
    return http(`/api/payment/weixin/queryPayStatus/${orderId}`, 'GET')
}